#pragma once
#include<fstream>
#include<string>
#include<atomic>
#include<thread>

class Log{
public:
  static std::atomic_flag lock_log;
  static void log(int fd, const std::string &sl, const std::string &s, const std::string &l);
private:
  static std::ofstream l;
};
